﻿<%@ Page Language="C#" MasterPageFile="~/Detail.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="news_Default" Title="Untitled Page" %>

<%@ Register src="../usercontrol/other/weather.ascx" tagname="weather" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHeader" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceSlide" Runat="Server">
    
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceMain" Runat="Server">
    <div class="rowheader"><a href="/Default.aspx">Trang chủ</a> » <a href="#">Tin tức </a></div>
<div id="content-new">
   <asp:UpdatePanel runat="server">
        <ContentTemplate>
              <asp:ListView ID="ListNews" runat="server" 
        onpagepropertieschanging="ListNews_PagePropertiesChanging">
        <LayoutTemplate>
        
              <div  ID="itemPlaceholder" runat="server"></div>
              <div class="pager">
                <asp:Literal ID="PageInfo" runat="server" >Trang: </asp:Literal>
                <asp:DataPager runat="server" ID="DataPager" PagedControlID="ListNews" PageSize="8">
                  <Fields>
                    <asp:NumericPagerField ButtonCount="6"
                         CurrentPageLabelCssClass="CurrentPage"
                         NumericButtonCssClass="PageNumbers"
                         NextPreviousButtonCssClass="PageNumbers" NextPageText=" >> "
                         PreviousPageText=" << " />
                  </Fields>
                </asp:DataPager>
            </div>
        </LayoutTemplate>
        <ItemTemplate>
                <div class="rownew">
                    <h2><a href='<%#"http://localhost:2011/didong/tin-tuc/"+Eval("Item_Title")%>'><%#Eval("Item_Name")%> </a></h2>
                    <span class="timeupdate"><%#Eval("Item_Postdate") %> | 15 lượt xem.</span>
                    <asp:HyperLink ID="HyperLink4" runat="server">
                        <asp:Image ID="Image4" runat="server" ImageUrl='<%#Eval("Item_Image") %>' /> 
                    </asp:HyperLink>
                    <span class="new-summary"><%#Eval("Item_Summary")%></span>
                </div>
        </ItemTemplate>
    </asp:ListView>
        </ContentTemplate>
    </asp:UpdatePanel>
</div>

</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="ContentPlaceRight" Runat="Server">
<uc1:weather ID="weather1" runat="server" />
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="ContentPlaceFooter" Runat="Server">
</asp:Content>

